package com.mediacloud.app.newsmodule.broadcast;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

/**
 * Created by x on 2017/5/8.
 *
 * 用来接收电源线插入或取了的广播
 */

public class PowerStateReciver extends BroadcastReceiver
{
    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    String state=Intent.ACTION_POWER_DISCONNECTED;
    @Override
    public void onReceive(Context context, Intent intent)
    {
        state=intent.getAction();
    }
}